///
/// file này dành cho việc download plugin và hiển thị hóa đơn ajax
function create(htmlStr) {
var frag = document.createDocumentFragment(),
temp = document.createElement('div');
temp.innerHTML = htmlStr;
while (temp.firstChild) {
frag.appendChild(temp.firstChild);
}
return frag;
}
$(function () {
fragment = create('
')
document.body.insertBefore(fragment, document.body.childNodes[0]);
})
function ajxCall(idInvoice, pattern) {
var jsondata = { idInvoice: idInvoice, pattern: pattern };
$.ajax({
type: "POST",
url: "/Share/ajxPreview",
data: jsondata,
success: function (data) {
$("#container").html(data + "